package com.beta.cms.test.demo.kafka;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Description kafka-server-start.bat ..\..\config\server.properties
 * @Date 2017年6月27日 上午11:55:08
 * @author xie
 * @version 1.0.0
 */
public class App {
	private static final Logger logger = LoggerFactory.getLogger(App.class);

	public void start() {
		ApplicationContext ac = new ClassPathXmlApplicationContext("spring-kafka-consumer.xml");
		logger.info("server started, main thread will exit().");

		logger.info(ac.getDisplayName());
		logger.info("main exiting................");
	}

	public static void main(String[] args) throws Exception {
		new App().start();
	}
}
